<?php
/**
 * Created by PhpStorm.
 * User: Lin
 * Date: 2019/4/9
 * Time: 22:17
 */
namespace IMooc;


class Factory
{
    static function createDatabase()
    {
        $db = Database::getInstance();
        Register::set('db1', $db);
        return $db;
    }
}